#include <iostream>
#include <string>
#include <string.h>

using namespace std;
class student
{
public:
    int id;
    char name[128];
};

class university_student : public student
{
public:
    char skill_1[128];
};

class a
{
private:
    int n1;

protected:
    int n2;

public:
    int n3;
    void setn1(int n1)
    {
        if (n1 > 1000)
            cout << " overflow" << endl;
        else
        {
            this->n1 = n1;
        }
    }
    void setn2(int n2)
    {
        if (n2 > 1000)
            cout << " overflow" << endl;
        else
        {
            this->n2 = n2;
        }
    }
    void setn3(int n3)
    {
        if (n3 > 1000)
            cout << " overflow" << endl;
        else
        {
            this->n3 = n3;
        }
    }
};
class b : public a
{
public:
    b()
    {
        n1 = 100;
    }
    void printN()
    {
        cout << n1 << endl;
    }
};
int main()
{
    /*
    student s1;
    s1.id=13;
    strcpy(s1.name,"王星星");

    university_student us1;
    us1.id=14;
    strcpy(us1.name,"王家骏");
    strcpy(us1.skill_1,"吹牛");
    */
    b b1;
    return 0;
}